import request from '@/utils/request'

// 查询行程资料列表
export function listJourney(query) {
  return request({
    url: '/journey/journey/list',
    method: 'get',
    params: query
  })
}

// 查询行程资料详细
export function getJourney(id) {
  return request({
    url: '/journey/journey/' + id,
    method: 'get'
  })
}

// 新增行程资料
export function addJourney(data) {
  return request({
    url: '/journey/journey',
    method: 'post',
    data: data
  })
}

// 修改行程资料
export function updateJourney(data) {
  return request({
    url: '/journey/journey',
    method: 'put',
    data: data
  })
}

// 删除行程资料
export function delJourney(id) {
  return request({
    url: '/journey/journey/' + id,
    method: 'delete'
  })
}
